var exchangeData = new Vue({
    el: "#exchangeData",
    data: function () {
        return {
            loading:false,
            searchData: {
                area: '',
                company: '',
                modelType: '',
                modelState: ''
            },
            ruleSearchData:{
                ruleName:'',
                suitOp:[]
            },
            tableData: [
                {
                    corpId: '12345',
                    corpName: '潍坊农商行',
                    modelType: '准入策略',
                    editionNo: '15',
                    createDate: '2019-01-01 12:00:00',
                    modifyDate: '2019-01-01 12:00:00',
                    effectDate: '2019-01-01 12:00:00',
                    state: '生效中',
                },{
                    corpId: '12345',
                    corpName: '潍坊农商行',
                    modelType: '准入策略',
                    editionNo: '15',
                    createDate: '2019-01-01 12:00:00',
                    modifyDate: '2019-01-01 12:00:00',
                    effectDate: '2019-01-01 12:00:00',
                    state: '生效中',
                },{
                    corpId: '12345',
                    corpName: '潍坊农商行',
                    modelType: '准入策略',
                    editionNo: '15',
                    createDate: '2019-01-01 12:00:00',
                    modifyDate: '2019-01-01 12:00:00',
                    effectDate: '2019-01-01 12:00:00',
                    state: '生效中',
                },{
                    corpId: '12345',
                    corpName: '潍坊农商行',
                    modelType: '准入策略',
                    editionNo: '15',
                    createDate: '2019-01-01 12:00:00',
                    modifyDate: '2019-01-01 12:00:00',
                    effectDate: '2019-01-01 12:00:00',
                    state: '生效中',
                },{
                    corpId: '12345',
                    corpName: '潍坊农商行',
                    modelType: '准入策略',
                    editionNo: '15',
                    createDate: '2019-01-01 12:00:00',
                    modifyDate: '2019-01-01 12:00:00',
                    effectDate: '2019-01-01 12:00:00',
                    state: '生效中',
                },{
                    corpId: '12345',
                    corpName: '潍坊农商行',
                    modelType: '准入策略',
                    editionNo: '15',
                    createDate: '2019-01-01 12:00:00',
                    modifyDate: '2019-01-01 12:00:00',
                    effectDate: '2019-01-01 12:00:00',
                    state: '生效中',
                },
            ],
            rulesData:[
                {
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },{
                    opeOrder:'1',
                    ruleName:'信贷黑名单',
                    suitObj:'借款人，借款人关联企业，借款人家庭成员，保证人，保证人家庭成员，保证人关联企业',
                    refusePeriod:'0',
                },
            ],
            rulesDetailData:[
                {
                    rules:'',
                    result:'',
                },
            ],
            ruleEditData:[
                {
                    ruleName:'',
                    ruleDesc:'',
                    ruleOrder:'',
                    refusePeriod:'',
                    suitOp:[],
                    refuseInfo:'',
                    accessInfo:'',
                    examineInfo:'',
                    outerInfo:'',
                }
            ],
            page:{
                currentPage:1,
                pageSize:10,
                totalRows:20
            },
            page1:{
                currentPage:1,
                pageSize:10,
                totalRows:80
            },
            page2:{
                currentPage:1,
                pageSize:10,
                totalRows:80
            },
            show:{
                dialogRule:false,
                dialogRuleEdit:false,
            },
            options: [{
                value: '选项1',
                label: '借款人'
            }, {
                value: '选项2',
                label: '借款人家庭成员'
            }, {
                value: '选项3',
                label: '借款人关联企业'
            }, {
                value: '选项4',
                label: '保证人'
            }, {
                value: '选项5',
                label: '保证人家庭成员'
            }, {
                value: '选项6',
                label: '保证人关联企业'
            }, {
                value: '选项7',
                label: '借款企业'
            }, {
                value: '选项8',
                label: '借款企业法定代表人'
            }],
            value1: [],
        }
    },
    created: function () {
    },
    mounted: function () {

    },
    methods: {
        query:function () {

        },
        resetSearchForm:function () {
            this.searchData.area='';
            this.searchData.company='';
            this.searchData.modelType='';
            this.searchData.modelState='';
        },
        newModel:function () {

        },
        handleEdit:function(){
            this.show.dialogRule = true;
        },
        handleDelete:function(){

        },
        handleCopy:function(){

        },
        queryRules:function(){
        },
        addNewRule:function(){
            this.show.dialogRuleEdit = true;
        },
        resetRuleSearch:function(){
            this.ruleSearchData.ruleName = '';
            this.ruleSearchData.suitOp = [];
        },
        comeBack:function(){
            this.show.dialogRule = false;
        },
        ruleEdit:function(){
            this.show.dialogRule = false;
        },
        ruleUpdate:function(){
            this.show.dialogRule = false;
        },
        pageSizeChange: function (num) {
            this.page.pageSize = num;
            //this.query(1, num);
        },
        pageCurrentChange: function (num) {
            this.page.currentPage = num;
            //this.query(num, this.page.pageSize);

        },
        pageSizeChange1: function (num) {
            this.page1.pageSize = num;
            //this.query(1, num);
        },
        pageCurrentChange1: function (num) {
            this.page1.currentPage = num;
            //this.query(num, this.page1.pageSize);

        },
        pageSizeChange2: function (num) {
            this.page2.pageSize = num;
            //this.query(1, num);
        },
        pageCurrentChange2: function (num) {
            this.page2.currentPage = num;
            //this.query(num, this.page1.pageSize);

        },
        
    },

});

